package com.firexxx.study.web.response;

/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2020/04/09 16:33
 */
public enum BusinessError implements ReturnCode {

    //1、系统错误
    SYSTEM_ERROR("9999", "系统错误"),
    //2、业务错误
    PARAM_ERROR("0001", "参数绑定错误");

    private String code;
    private String desc;

    BusinessError(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}